package com.px.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class wxController {
    /**
     * 微信登录   ModelAndView构造方法可以指定返回的页面名称
     * @return
     * @throws Exception
     */
    @RequestMapping("/wx")
    public ModelAndView dl()throws Exception{
        ModelAndView mav = new ModelAndView();
        mav.setViewName("wx");
        mav.addObject("title","扫码登录测试");
        return mav;
    }
}
